#!/usr/bin/env sh
# abort on errors
set -e
git checkout -b gh-pages
yarn build
shopt -s  extglob
rm -rf !(dist)
mv dist/* ./ &&
rm -rf dist


git add .
git commit -m 'gh-pages'
git push origin gh-pages&&

git checkout -